package com.lidy.tankbattle.tankgame0;

import javax.swing.*;

/**
 * @author lidy
 * @version V1.0
 * @classname DrawCircle
 * @description 画圆
 * @date 2022/5/28 9:23
 */
@SuppressWarnings({"all"})
public class DrawCircle extends JFrame {
    // 定义一个面板
    private MyPanel mp = null;

    public static void main(String[] args) {
        DrawCircle drawCircle = new DrawCircle();
    }

    public DrawCircle() {
        mp = new MyPanel();
        // 把面板放入窗口
        this.add(mp);
        this.setSize(600, 1000);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setVisible(true);
        new Thread(mp).start();
    }
}
